package brc.syntacticTree;

import java.io.Writer;

public class ParameterDeclNode implements TypedTreeNode {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7670610841485257173L;
	private int type;
	private String paramName;
	
	public ParameterDeclNode(int type, String paramName) {
		if (paramName == null) {
			throw new NullPointerException("ParamName must have a specified name");
		}
		this.type = type;
		this.paramName = paramName;
	}	
	
	public String getParamName() {
		return paramName;
	}

	@Override
	public void writeAssembly(Writer writer)
	{ }

	@Override
	public void semanticCheck() throws SemanticException
	{ }

	@Override
	public int getType() {
		return this.type;
	}
}
